package javaseof10day.day7.am;

import java.sql.SQLException;

public class mysqlCurdDemo {

	public static void main(String[] args) throws ClassNotFoundException, SQLException {
		
		//完成数据库的增删改查
		UsersAction usersAction = new UsersAction();

		usersAction.add("mastudy", "123456", "1261639911@qq.com");

		usersAction.selectAll();

		usersAction.selectOne(1);

		int res = usersAction.update(new Users(1, "mastudy", "234567", "1261639911@qq.com"));

		System.out.println(usersAction.deleteOne(2));

		System.out.println(usersAction.selectAll());

	}

}
